<!doctype html>
<html>
{include file="./public/admin/common/head_css.html" /}
<body>
{include file="./public/admin/common/header.html" /}
<div class="container clearfix">
    {include file="./public/admin/common/left.html" /}
    <!--/sidebar-->
    <div class="main-wrap">

        <div class="crumb-wrap">
            <div class="crumb-list"><i class="icon-font"></i><a href="index.html">首页</a><span class="crumb-step">&gt;</span><span class="crumb-name">作品管理</span></div>
        </div>
        <div class="search-wrap">
            <div class="search-content">
                <form action="#" method="post">
                    <table class="search-tab">
                        <tr>
                            <th width="120">选择分类:</th>
                            <td>
                                <select name="search-sort" id="compose_list">
                                    <option value="">全部</option>
                                    {volist name='write' id='w' }
                                    {if condition = "$w.pid eq 0 and $w.del eq 1"}
                                    <option value="{$w.id}">{$w.title}</option>
                                    {/if}
                                    {/volist}
                                </select>
                            </td>
                            <th width="70">关键字:</th>
                            <td><input class="common-text" placeholder="关键字" name="keyword" id="keyword" type="text"></td>
                            <td><input class="btn btn-primary btn2" value="查询" id="search" type="submit" lay-submit="" lay-filter="search"></td>
                        </tr>
                    </table>
                </form>
            </div>
        </div>
        <div class="result-wrap">
            <form name="myform" id="myform" method="post">
                <div class="result-title">
                    <div class="result-list">
                        <a href="#" onclick="write_blog()"><i class="icon-font"></i>新增作品</a>
                        <a id="batchDel" href="javascript:void(0)" onclick="dels_compose()"><i class="icon-font"></i>批量删除</a>
                        <a id="updateOrd" href="javascript:void(0)"><i class="icon-font"></i>更新排序</a>
                    </div>
                </div>
                <div class="result-content">
                    <table class="result-tab" width="100%">
                        <tr>
                            <th class="tc" width="5%"><input class="allChoose" id="allChk" name="" type="checkbox"></th>
                            <!--<th>排序</th>-->
                            <th>标题</th>
                            <th>审核状态</th>
                            <th>点击</th>
                            <th>更新时间</th>
                            <th>评论</th>
                            <th>操作</th>
                        </tr>
                        <tbody id="page_list">
                        </tbody>

                    </table>
                    <div id="pages"></div>
                </div>
            </form>
        </div>
    </div>
    <!--/main-->
</div>
</body>
{include file="./public/admin/common/JS.html" /}
<script>
    var id = $('#compose_list').val();
    var keyword = $('#keyword').val();
    getListPage(url_list.myCompose_list,id,keyword,2);

    $(function () {
        $('#search').click(function () {
            var id = $('#compose_list').val();
            var keyword =$('#keyword').val();
            getListPage(url_list.myCompose_list,id,keyword,2);
            return false;
        });
        $('#compose_list').change(function () {
            var id = $('#compose_list').val();
            var keyword =$('#keyword').val();
            getListPage(url_list.myCompose_list,id,keyword,2);
            return false;
        })
    })
</script>
</html>